package com.cqjtu.drive.mapper;

import com.cqjtu.drive.pojo.Vehicle;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface VehicleMapper {

    Vehicle getVehicleById(String vId);

    void insertVehicle(Vehicle vehicle);

    void updateVehicle(Vehicle vehicle);

    void deleteVehicle(String vId);

    List<Vehicle> getAllVehicles();
    List<Vehicle> getVehiclesByname(String vName);
}
